﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace com.cgWorkstudio.BIMP.Client {
    public partial class Form_Controller:Form {
        public Form_Controller() {
            InitializeComponent();
        }

        protected override void OnShown(EventArgs e) {
            this.Visible = false;
            base.OnShown(e);
        }
        private void Form_Controller_Load(object sender,EventArgs e) {
            CG_showStartupForm();
        }
        // 显示启动窗口
        void CG_showStartupForm() {
            Form_Startup frmStartup = new Form_Startup();
            frmStartup.Owner = this;
            frmStartup.Show();
        }

        //  显示登录窗口
        internal void CG_showLoginForm() {
            Form_Login frmLogin = new Form_Login();
            frmLogin.Owner = this;
            frmLogin.Show();
        }
        
        // 关闭启动窗口
        void CG_CloseLoginForm() {
        }

        /// <summary>
        /// 推出应用程序
        /// </summary>
        internal void CG_ExitApp() {
            this.Close();
        }

        // 显示系统主窗口
        internal void CG_showMainForm() {
            Form_Main frmMain = new Form_Main();
            frmMain.Owner = this;
            frmMain.Show();
        }
    }
}
